﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000AD RID: 173
	internal class Int16Int64 : IInt64Decoder
	{
		// Token: 0x060002B6 RID: 694 RVA: 0x0000B92C File Offset: 0x00009D2C
		private Int16Int64()
		{
		}

		// Token: 0x060002B7 RID: 695 RVA: 0x0000B934 File Offset: 0x00009D34
		public long Read(byte[] bytes, int offset, out int readSize)
		{
			readSize = 3;
			return (long)((short)((int)bytes[offset + 1] << 8 | (int)bytes[offset + 2]));
		}

		// Token: 0x040000CE RID: 206
		internal static readonly IInt64Decoder Instance = new Int16Int64();
	}
}
